#ifndef NEG_OPERATOR_H_
#define NEG_OPERATOR_H_

#include "unaryoperation.h

class NegOperator : public UnaryOperator
{
private:
	const char *t = "-";
public:
	NegOperator(Expression &operand)
		: UnaryOperator(operand)
	{
	}

	const char *text() const { return this->t; }
	float value() { return -UnaryOperator::op->value(); }
	virtual void printInfix() { }
	virtual void printRpn() { }
};

#endif